package com.zsk.blog.imp;

import com.zsk.blog.entity.Project;
import com.zsk.blog.repository.ProjectRepository;
import com.zsk.blog.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: blog
 * @description:
 * @author: Mr.Wang
 * @create: 2020-04-08 11:43
 **/

@Service
public class ProjectImp implements ProjectService {

    @Resource
    private ProjectRepository projectRepository;

    @Override
    public List<Project> findAllByCompanyid(Integer companyId) {
        return  projectRepository.findAllByCompanyid(companyId);
    }
}
